<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /* 
        1. i=0; i=i+1;while ( 1< 5); console.log(1);
        2. i=1; i=i+1;while ( 2< 5); console.log(2);
        3. i=2; i=i+1;while ( 3< 5); console.log(3);
        4. i=3; i=i+1;while ( 4< 5); console.log(4);
        5. i=4; i=i+1;while ( 5< 5); 
      */
      let i = 0;
      while (++i < 5) console.log(i);
    </script>
  </body>
</html>
